import request from '@/utils/request'
// 查询学校表列表
export function listSchoolApi(query) {
  return request({
    url: '/edutation/school/list',
    method: 'get',
    params: {
      orderByColumn:'schoolId',
      isAsc:'descending',
      ...query
    }
  })
}
// 查询学校表详细
export function getSchoolApi(schoolId) {
  return request({
    url: '/edutation/school/' + schoolId,
    method: 'get'
  })
}

// 新增学校表
export function addSchoolApi(data) {
  return request({
    url: '/edutation/school',
    method: 'post',
    data: data
  })
}

// 修改学校表
export function updateSchoolApi(data) {
  return request({
    url: '/edutation/school',
    method: 'put',
    data: data
  })
}

// 删除学校表
export function delSchoolApi(schoolId) {
  return request({
    url: '/edutation/school/' + schoolId,
    method: 'delete'
  })
}
